<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body><?php
if (!isset($_SESSION)) @session_start();

    if(isSet($_SESSION['logged'])) {
    	echo '<link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />';
    	echo "<h3>Aktualnie zalogowany jako: "."<font color='green'><i>".$_SESSION['logged']."</i></font></h3>";
    	echo "<a href='session/logout.php'> Wyloguj </a><br> <br>";
    }
    else {
    	echo '<link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />';
    	echo ' <h2><span>Logowanie</span></h2>';
    	echo '<div id="panel">';
    	echo '<form name = "logowanie" action = "session/login.php" method = "post" >';
    	echo '<label for="login">Nazwa uzytkownika:</label>';
    	echo '<input type="text" id="login" name="login">';
    	echo '<label for="haslo">Haslo:</label>';
    	echo '<input type="password" id="haslo" name="haslo">';
    	echo '<br>';
    	echo '<a href="rejestracja_pacjent.php">Rejestracja nowego pacjenta</a>';
    	echo '<br>';
    	echo '<a href="recovery.php">Odzyskiwanie hasła</a>';
    	echo '<div id="lower">';
    	 
    	echo '<input type="submit" value="Zaloguj mnie!">';
    	echo '</div>';
    	echo '</form>';
    	echo '</div>';
    } ?>
    </body>
    </html>